package org.gangcai.mac.shop.bean;

import java.util.List;

/**
 * Created by mac on 2018/4/5.
 */

public class CartsBean extends CommonResonseBean {

    public ProductsBean getInfo() {
        return info;
    }

    public void setInfo(ProductsBean info) {
        this.info = info;
    }

    /**
     * result : suc
     * msg : 获取成功
     * code : 101
     * info : [{"id":"2","img":"Public/Uploads/5abc9216607d4.png","goods_name":"Apple iPhone X (A1865) 256GB 深空灰色 移动联通电信4G手机","money":"7788.00"},{"id":"1","img":"Public/Uploads/5abc8eb10ec51.png","goods_name":"Apple iPhone 8 Plus (A1864) 64GB 金色 移动联通电信4G手机","money":"6688.00"}]
     */

    private ProductsBean info;

    public static class ProductsBean {
        private List<ProductBean> goods_list;

        public List<ProductBean> getGoods_list() {
            return goods_list;
        }

        public void setGoods_list(List<ProductBean> goods_list) {
            this.goods_list = goods_list;
        }

        public TotalBean getTotal() {
            return total;
        }

        public void setTotal(TotalBean total) {
            this.total = total;
        }

        private TotalBean total;
    }
    public static class TotalBean {
        private String goods_price;

        public String getGoods_price() {
            return goods_price;
        }

        public void setGoods_price(String goods_price) {
            this.goods_price = goods_price;
        }

        public String getMarket_price() {
            return market_price;
        }

        public void setMarket_price(String market_price) {
            this.market_price = market_price;
        }

        public String getSaving() {
            return saving;
        }

        public void setSaving(String saving) {
            this.saving = saving;
        }

        private String market_price;
        private String saving;
    }

    public static class ProductBean {
        /**
         * id : 2
         * img : Public/Uploads/5abc9216607d4.png
         * goods_name : Apple iPhone X (A1865) 256GB 深空灰色 移动联通电信4G手机
         * money : 7788.00
         */
        private String goods_id;
        private String goods_name;
        private String goods_price;
        private String goods_number;

        public List<VolumeBean> getVolume_price_html() {
            return volume_price_html;
        }

        public void setVolume_price_html(List<VolumeBean> volume_price_html) {
            this.volume_price_html = volume_price_html;
        }

        private List<VolumeBean> volume_price_html;

        public String getSelected() {
            return selected;
        }

        public void setSelected(String selected) {
            this.selected = selected;
        }

        //该商品是否在购物车中选择, 如果选择该商品将会结算 , 1:选中, 0:未选中
        private String selected="1";
        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getGoods_price() {
            return goods_price;
        }

        public void setGoods_price(String goods_price) {
            this.goods_price = goods_price;
        }

        public String getGoods_number() {
            return goods_number;
        }

        public void setGoods_number(String goods_number) {
            this.goods_number = goods_number;
        }

        public String getSubtotal() {
            return subtotal;
        }

        public void setSubtotal(String subtotal) {
            this.subtotal = subtotal;
        }

        public String getGoods_thumb() {
            return goods_thumb;
        }

        public void setGoods_thumb(String goods_thumb) {
            this.goods_thumb = goods_thumb;
        }

        private String subtotal;
        private String goods_thumb;

    }

    public static class VolumeBean {
        private String number;

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getFormat_price() {
            return format_price;
        }

        public void setFormat_price(String format_price) {
            this.format_price = format_price;
        }

        private String price;
        private String format_price;
    }
}
